package com.web.pojo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.Collection;
import java.util.Date;

/**
 * @Author: wws
 * @Date: 2021/2/18 1:18
 * describe:
*/
public class User implements UserDetails {
    private Integer userId;//id
    private String account;//账户
    private String password;//密码
    private String niceName;//昵称
    private String sex;//性别
    private String email;//邮箱
    private String phone;//电话
    private String remake;//备注
    private Integer delFlag;//是否删除
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;//创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;//修改时间
    private Integer createBy;//创建者
    private Integer updateBy;//更新者

    @Override
    public Collection<? extends GrantedAuthority> getAuthorities() {
        return null;
    }

    @Override
    public String getPassword() {
        return null;
    }

    @Override
    public String getUsername() {
        return null;
    }

    @Override
    public boolean isAccountNonExpired() {
        return false;
    }

    @Override
    public boolean isAccountNonLocked() {
        return false;
    }

    @Override
    public boolean isCredentialsNonExpired() {
        return false;
    }

    @Override
    public boolean isEnabled() {
        return false;
    }
}
